//
//  CustomActionSheet.h
//  CustomActionSheetDemo
//
//  Created by wuleilei on 11-8-31.
//  Copyright 2011 http://www.wuleilei.com/ All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol UICustomActionSheetDelegate <NSObject>

-(void)ClickItem:(NSString *)Title ActionSheetTag:(NSInteger)actionSheetTag;
-(void)ClickItem:(NSString *)Title selectRow:(NSInteger )SelectRow ActionSheetTag:(NSInteger)actionSheetTag;

@end
@interface CustomActionSheet : UIActionSheet<UIPickerViewDelegate,UIPickerViewDataSource>
 {
	UIToolbar* toolBar;
	UIView* view;
    NSArray *pickerData;
    UIPickerView *pickerView;
}

@property(nonatomic,retain)UIView* view;
@property(nonatomic,retain)UIToolbar* toolBar;
@property(nonatomic,strong) id<UICustomActionSheetDelegate>Customdelegate;


/*因为是通过给ActionSheet 加 Button来改变ActionSheet, 所以大小要与actionsheet的button数有关
 *height = 84, 134, 184, 234, 284, 334, 384, 434, 484
 *如果要用self.view = anotherview.  那么another的大小也必须与view的大小一样
 */

-(id)initWithHeight:(float)height WithSheetTitle:(NSString*)title WithDataArray:(NSArray *)dataArray;

@end
